import request from '@/utils/request'

// 查询任务需求文档列表
export function listRequirements(query) {
    return request({
        url: '/dashboard/requirements/list',
        method: 'get',
        params: query
    })
}

// 查询任务需求文档详细
export function getRequirements(id) {
    return request({
        url: '/dashboard/requirements/' + id,
        method: 'get'
    })
}

// 新增任务需求文档
export function addRequirements(data) {
    return request({
        url: '/dashboard/requirements',
        method: 'post',
        data: data
    })
}

// 修改任务需求文档
export function updateRequirements(data) {
    return request({
        url: '/dashboard/requirements',
        method: 'put',
        data: data
    })
}

// 删除任务需求文档
export function delRequirements(ids) {
    return request({
        url: '/dashboard/requirements/' + ids,
        method: 'delete'
    })
}
